package com.yand.serviceimpl.business.order;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yand.api.entity.business.order.THfReorder;
import com.yand.api.service.business.order.OrderSubService;
import com.yand.mapper.business.order.THfReorderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 *  续费订单管理逻辑实现类
 */
@Service
public class OrderSubServiceImpl implements OrderSubService {

    @Autowired
    private THfReorderMapper subOrderMapper;


    /**
     *  查询所有的续费订单列表
     * @param subOrder
     * @return
     */
    @Override
    public PageInfo<THfReorder> queryAllSubOrderList(THfReorder subOrder) {
        PageHelper.startPage(subOrder.getPageNum(), subOrder.getPageSize());

        return PageInfo.of(subOrderMapper.selectSubOrderList(subOrder));
    }
}
